package itheima.com.Reader;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class BufferedReader_ {

    public static void main(String[] args) {
//        字节流读取
        String filePath = "D:\\一条小团团\\demo.txt";
        String len;
        try {
            BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));
            while ((len = bufferedReader.readLine()) != null){
                System.out.println(len);
            }

        } catch (IOException e) {
            e.printStackTrace();
        }


    }

}
